package com.timothy.dao.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 管理员权限表-IDEA
 * </p>
 *
 * @author idea
 * @since 2017-01-01
 */
@TableName("idea_user_role")
public class IdeaUserRole extends Model<IdeaUserRole> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="user_role_id", type= IdType.AUTO)
	private Integer userRoleId;
    /**
     * 角色ID
     */
	@TableField("role_id")
	private Integer roleId;
    /**
     * 主键
     */
	private Integer id;


	public Integer getUserRoleId() {
		return userRoleId;
	}

	public IdeaUserRole setUserRoleId(Integer userRoleId) {
		this.userRoleId = userRoleId;
		return this;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public IdeaUserRole setRoleId(Integer roleId) {
		this.roleId = roleId;
		return this;
	}

	public Integer getId() {
		return id;
	}

	public IdeaUserRole setId(Integer id) {
		this.id = id;
		return this;
	}

	public static final String USER_ROLE_ID = "user_role_id";

	public static final String ROLE_ID = "role_id";

	public static final String ID = "id";

	@Override
	protected Serializable pkVal() {
		return this.userRoleId;
	}

	@Override
	public String toString() {
		return "IdeaUserRole{" +
			"userRoleId=" + userRoleId +
			", roleId=" + roleId +
			", id=" + id +
			"}";
	}
}
